South Africa's openers Dean Elgar (15) and Aiden Markram were positive at the start of the innings, but disaster struck as they lost two wickets in the final two balls of the middle session.
Leg-spinner Shah's selection was subject to the 35-year-old clearing a fitness test, chief selector Mohammad Wasim said in a statement.
A burgeoning third wicket stand between Babar Azam and Abdullah Shafique had kept Pakistan in the contest and the duo continued to frustrate Australia when play resumed.
The 34-year-old took the prized wickets of Imam-ul-Haq, Azhar Ali and Babar Azam to end Pakistan's resistance and finished with figures of 5-83 in Pakistan's second innings.
The pitch offered some variable bounce but did not pose too many problems for the batters till the final hour of play.
Home captain Williamson also praised the "special effort from" team man Wagner.
The selectors have also put Bilal Asif, Imran Butt, Musa Khan and Mohammad Nawaz on standby to cover for any player who fails pre-tour COVID-19 Testing scheduled later this month.
Pakistan pulled off a thrilling three-wicket victory over hosts Bangladesh to storm into the finals of the Asia Cup cricket tournament, knocking India out of the title race.
Virat Kohli has held on to his fifth spot in the latest ICC Test rankings for batsmen.
Pakistan spinner Abdur Rehman had a spell to forget in the Asia Cup match against Bangladesh on Tuesday. The left-armer sent down a three consecutive illegal full tosses and finished with bizarre bowling figures of 0-0-8-0.
Pakistan spinners Yasir Shah and Nauman Ali took five wickets between them to restrict South Africa to 220 all out, but the home side faltered in reply to close on 33 for four on day one of a fast-moving first Test in Karachi on Tuesday.
Six of the 10 Pakistan cricketers bound for England who tested positive for COVID-19 have now registered negative results on re-testing, the Pakistan Cricket Board (PCB) said on Saturday. Mohammad Hasnain, Shadab Khan, Fakhar Zaman, Mohammad Rizwan, Mohammad Hafeez and Wahab Riaz, however, must return a second negative result before they can join the main squad of 20 players who will leave for England on Sunday.
New Zealand bundled out Pakistan on 297 in 83.5 overs.
A victory at Hagley Oval to seal a 2-0 series sweep would also push the Black Caps firmly into contention for one of two berths in June's inaugural ICC World Test Championship final at Lord's.
Bangladesh trail by 224 runs and still needed 25 runs to avoid the follow-on at the end of Day 4.
India captain Virat Kohli and his deputy Rohit Sharma maintained their supremacy at the top of the ICC ODI rankings for batsmen, occupying the first and second spots respectively in the latest list released on Wednesday.
Australia, on their first tour of Pakistan in 24 years, finished day three 205 behind but scored freely after resuming on five for no loss.
Pakistan had been reduced to 76 for five in their second innings as South Africa's spinners made inroads through the top order having been bowled out for 201 in another shambolic display with the bat.
Misbah-ul-Haq felt that players while training in isolation will have ample time to adjust and it is also a good opportunity for the young players in the side to gain exposure.
Riding high on Lasith Malinga's five-wicket haul and opener Lahiru Thrimanne's fluent century, Sri Lanka regained the Asia Cup trophy with a comfortable five-wicket victory over defending champions Pakistan in Mirpur on Saturday.
A PCB official said the suspended off-spinner has been named in the preliminary squad as he was in the process of correcting his action and would soon appear for an ICC biomechanics test.
They will need to bat the entire final day on a deteriorating Bay Oval pitch in Mount Maunganui on Wednesday to stop the hosts taking a 1-0 lead in the two-match series.
Sri Lanka clinched the one-day international series against Pakistan after their bowlers, led by Thisara Perera, routed the tourists to secure a seven-wicket victory in the deciding third and final match on Saturday.
Pakistan have made a number of changes in their ODI squad for the short home series against Zimbabwe, recalling seniors such as Shoaib Malik and Muhammad Sami in the 16-member side.
Leg-spinner Yasir Shah marks his return to the national men's team as Pakistan on Wednesday announced an 18-member squad for next month's two-match Test series against Sri Lanka.
The problem with non-selection of an Indian player in the XI is more to do with lack of matches rather than poor show since they have won both the series that they played in 2021.
Pakistan have named Azhar Ali as their One-day captain following the retirement of Misbah-ul-Haq from One-Day Internationals after this month's World Cup.
Australian batsman David Warner is confident he will be fit to face Pakistan in next week's first Test despite suffering a groin injury in the final one-day international in Abu Dhabi on Sunday.
Suspended from international cricket for an illegal bowling action, Pakistan's Saeed Ajmal on Friday returned to the national side.
Pakistan head coach Misbah-ul-Haq could be asked to relinquish his role as chief selector after the team returns from England as the cricket authorities are considering appointing a new person for the top job.
A responsible half-century from captain Angelo Mathews and some big hitting by Thisara Perera set up a comprehensive 77-run win for Sri Lanka against Pakistan in the second ODI on Tuesday and helped the hosts level the series at 1-1.
Former captain and senior batsman Younis Khan caused a stir in the Pakistan cricket circles by openly suggesting that he is not happy with the behavior of Test captain Misbah-ul-Haq and head coach Waqar Younis.
Pakistan have axed senior batsman Younis Khan for next month's One-day series against Australia in the United Arab Emirates as they announced their ODI and Twenty20 squads on Wednesday.
With two days remaining and 17 wickets still potentially to fall, a draw looks the probable outcome, although Wahab Riaz's removal of Bell (63) and Mark Wood (4) in successive overs near the close again put the hosts in the ascendancy.
Steve Smith cracked his maiden 50-over century as Australia routed Pakistan in 36.3 overs to secure a comprehensive 93-run victory in the first One-day International on Tuesday.
Bangladesh outplayed Pakistan by 79 runs in the first one-day international in Dhaka on Friday, in only their second win over their rivals in 48 games across all three formats.
Uncapped left-arm spinner Zafar Gohar has joined the test squad from the Pakistan A team currently in Hamilton.
There has only been a boom in the cinema industry in Pakistan in the last few years because of the release of latest Bollywood and Hollywood films if there is any permanent ban you can expect lot of cinema houses and multiplexes to close down.
Pakistan pulled off a thrilling three-wicket victory over hosts Bangladesh to storm into the finals of the Asia Cup cricket tournament, knocking India out of the title race. Shahid Afridi's blistering 59 off 25 balls helped Pakistan set up a summit clash against Sri Lanka. Here are the statistical highlights from the Asia Cup One-dayer played between Pakistan and Bangladesh in Dhaka on Tuesday.
The International Cricket Council released the provisional squads of the 12 teams for next year's World Cup in Australia and New Zealand on Friday. However, co-hosts Australia and minnows Ireland decided against releasing the provisional list although they submitted 30 names to the parent body within the stipulated deadline.